package org.darkforest.model;

import org.darkforest.common.util.Page;
import org.darkforest.vo.StoreClassVo;

import java.math.BigDecimal;
import java.util.List;

public class Store  extends Page<Store> {

    /*************用于sql精确查询*****************/

    private String sellerNameEq;
    private String storeNameEq;
    private String memberNameEq;

    private boolean canDel;//能否删除
    /****************************/


    private Integer storeId;

    private String storeName;

    private Integer gradeId;

    private String gradeName;

    private Integer memberId;

    private String memberName;

    private String memberPasswd;

    private String sellerName;

    private Integer scId;

    private String storeCompanyName;

    private Integer provinceId;

    private String areaInfo;

    private String storeAddress;

    private String storeZip;


    private String storeCloseInfo;

    private Integer storeSort;

    private String storeTime;

    private String storeEndTime;

    private String storeLabel;

    private String storeBanner;

    private String storeAvatar;

    private String storeKeywords;

    private String storeDescription;

    private String storeQq;

    private String storeWw;

    private String storePhone;

    private String storeDomain;

    private Boolean storeDomainTimes;

    private Boolean storeRecommend;

    private String storeTheme;

    private Integer storeCredit;

    private Float storeDesccredit;

    private Float storeServicecredit;

    private Float storeDeliverycredit;

    private Integer storeCollect;

    private String storeStamp;

    private String storePrintdesc;

    private Integer storeSales;

    private String storeWorkingtime;

    private BigDecimal storeFreePrice;

    private Integer storeDecorationSwitch;

    private Boolean storeDecorationOnly;

    private Integer storeDecorationImageCount;

    private String liveStoreName;

    private String liveStoreAddress;

    private String liveStoreTel;

    private String liveStoreBus;

    private Integer defaultAlbumId;    //默认相册编号

    private BigDecimal commissionRate;  //佣金比率

    private Integer storeState;

    private String active;

    private Integer countyId; //所属贫困县id

    private Integer companyId; //所属企业id

    private List<Cart> cartList;

    private StoreClassVo[] toreClassVos;

    public List<Cart> getCartList() {
        return cartList;
    }

    public void setCartList(List<Cart> cartList) {
        this.cartList = cartList;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }
    private String startTime;

    private String endTime;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public boolean isCanDel() {
        return canDel;
    }

    public void setCanDel(boolean canDel) {
        this.canDel = canDel;
    }

    public String getMemberPasswd() {
        return memberPasswd;
    }

    public void setMemberPasswd(String memberPasswd) {
        this.memberPasswd = memberPasswd;
    }

    public String getStoreStateDes(){
        if(this.storeState==1){
            return "开启";
        }else{
            return "关闭";
        }
    }

    public Integer getStoreState() {
        return storeState;
    }

    public void setStoreState(Integer storeState) {
        this.storeState = storeState;
    }

    private List<Goods> goodsList;

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName == null ? null : storeName.trim();
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName == null ? null : memberName.trim();
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName == null ? null : sellerName.trim();
    }

    public Integer getScId() {
        return scId;
    }

    public void setScId(Integer scId) {
        this.scId = scId;
    }

    public String getStoreCompanyName() {
        return storeCompanyName;
    }

    public void setStoreCompanyName(String storeCompanyName) {
        this.storeCompanyName = storeCompanyName == null ? null : storeCompanyName.trim();
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public String getAreaInfo() {
        return areaInfo;
    }

    public void setAreaInfo(String areaInfo) {
        this.areaInfo = areaInfo == null ? null : areaInfo.trim();
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress == null ? null : storeAddress.trim();
    }

    public String getStoreZip() {
        return storeZip;
    }

    public void setStoreZip(String storeZip) {
        this.storeZip = storeZip == null ? null : storeZip.trim();
    }



    public String getStoreCloseInfo() {
        return storeCloseInfo;
    }

    public void setStoreCloseInfo(String storeCloseInfo) {
        this.storeCloseInfo = storeCloseInfo == null ? null : storeCloseInfo.trim();
    }

    public Integer getStoreSort() {
        return storeSort;
    }

    public void setStoreSort(Integer storeSort) {
        this.storeSort = storeSort;
    }

    public String getStoreTime() {
        return storeTime;
    }

    public void setStoreTime(String storeTime) {
        this.storeTime = storeTime == null ? null : storeTime.trim();
    }

    public String getStoreEndTime() {
        return storeEndTime;
    }

    public void setStoreEndTime(String storeEndTime) {
        this.storeEndTime = storeEndTime == null ? null : storeEndTime.trim();
    }

    public String getStoreLabel() {
        return storeLabel;
    }

    public void setStoreLabel(String storeLabel) {
        this.storeLabel = storeLabel == null ? null : storeLabel.trim();
    }

    public String getStoreBanner() {
        return storeBanner;
    }

    public void setStoreBanner(String storeBanner) {
        this.storeBanner = storeBanner == null ? null : storeBanner.trim();
    }

    public String getStoreAvatar() {
        return storeAvatar;
    }

    public void setStoreAvatar(String storeAvatar) {
        this.storeAvatar = storeAvatar == null ? null : storeAvatar.trim();
    }

    public String getStoreKeywords() {
        return storeKeywords;
    }

    public void setStoreKeywords(String storeKeywords) {
        this.storeKeywords = storeKeywords == null ? null : storeKeywords.trim();
    }

    public String getStoreDescription() {
        return storeDescription;
    }

    public void setStoreDescription(String storeDescription) {
        this.storeDescription = storeDescription == null ? null : storeDescription.trim();
    }

    public String getStoreQq() {
        return storeQq;
    }

    public void setStoreQq(String storeQq) {
        this.storeQq = storeQq == null ? null : storeQq.trim();
    }

    public String getStoreWw() {
        return storeWw;
    }

    public void setStoreWw(String storeWw) {
        this.storeWw = storeWw == null ? null : storeWw.trim();
    }

    public String getStorePhone() {
        return storePhone;
    }

    public void setStorePhone(String storePhone) {
        this.storePhone = storePhone == null ? null : storePhone.trim();
    }

    public String getStoreDomain() {
        return storeDomain;
    }

    public void setStoreDomain(String storeDomain) {
        this.storeDomain = storeDomain == null ? null : storeDomain.trim();
    }

    public Boolean getStoreDomainTimes() {
        return storeDomainTimes;
    }

    public void setStoreDomainTimes(Boolean storeDomainTimes) {
        this.storeDomainTimes = storeDomainTimes;
    }

    public Boolean getStoreRecommend() {
        return storeRecommend;
    }

    public void setStoreRecommend(Boolean storeRecommend) {
        this.storeRecommend = storeRecommend;
    }

    public String getStoreTheme() {
        return storeTheme;
    }

    public void setStoreTheme(String storeTheme) {
        this.storeTheme = storeTheme == null ? null : storeTheme.trim();
    }

    public Integer getStoreCredit() {
        return storeCredit;
    }

    public void setStoreCredit(Integer storeCredit) {
        this.storeCredit = storeCredit;
    }

    public Float getStoreDesccredit() {
        return storeDesccredit;
    }

    public void setStoreDesccredit(Float storeDesccredit) {
        this.storeDesccredit = storeDesccredit;
    }

    public Float getStoreServicecredit() {
        return storeServicecredit;
    }

    public void setStoreServicecredit(Float storeServicecredit) {
        this.storeServicecredit = storeServicecredit;
    }

    public Float getStoreDeliverycredit() {
        return storeDeliverycredit;
    }

    public void setStoreDeliverycredit(Float storeDeliverycredit) {
        this.storeDeliverycredit = storeDeliverycredit;
    }

    public Integer getStoreCollect() {
        return storeCollect;
    }

    public void setStoreCollect(Integer storeCollect) {
        this.storeCollect = storeCollect;
    }

    public String getStoreStamp() {
        return storeStamp;
    }

    public void setStoreStamp(String storeStamp) {
        this.storeStamp = storeStamp == null ? null : storeStamp.trim();
    }

    public String getStorePrintdesc() {
        return storePrintdesc;
    }

    public void setStorePrintdesc(String storePrintdesc) {
        this.storePrintdesc = storePrintdesc == null ? null : storePrintdesc.trim();
    }

    public Integer getStoreSales() {
        return storeSales;
    }

    public void setStoreSales(Integer storeSales) {
        this.storeSales = storeSales;
    }

    public String getStoreWorkingtime() {
        return storeWorkingtime;
    }

    public void setStoreWorkingtime(String storeWorkingtime) {
        this.storeWorkingtime = storeWorkingtime == null ? null : storeWorkingtime.trim();
    }

    public BigDecimal getStoreFreePrice() {
        return storeFreePrice;
    }

    public void setStoreFreePrice(BigDecimal storeFreePrice) {
        this.storeFreePrice = storeFreePrice;
    }

    public Integer getStoreDecorationSwitch() {
        return storeDecorationSwitch;
    }

    public void setStoreDecorationSwitch(Integer storeDecorationSwitch) {
        this.storeDecorationSwitch = storeDecorationSwitch;
    }

    public Boolean getStoreDecorationOnly() {
        return storeDecorationOnly;
    }

    public void setStoreDecorationOnly(Boolean storeDecorationOnly) {
        this.storeDecorationOnly = storeDecorationOnly;
    }

    public Integer getStoreDecorationImageCount() {
        return storeDecorationImageCount;
    }

    public void setStoreDecorationImageCount(Integer storeDecorationImageCount) {
        this.storeDecorationImageCount = storeDecorationImageCount;
    }

    public String getLiveStoreName() {
        return liveStoreName;
    }

    public void setLiveStoreName(String liveStoreName) {
        this.liveStoreName = liveStoreName == null ? null : liveStoreName.trim();
    }

    public String getLiveStoreAddress() {
        return liveStoreAddress;
    }

    public void setLiveStoreAddress(String liveStoreAddress) {
        this.liveStoreAddress = liveStoreAddress == null ? null : liveStoreAddress.trim();
    }

    public String getLiveStoreTel() {
        return liveStoreTel;
    }

    public void setLiveStoreTel(String liveStoreTel) {
        this.liveStoreTel = liveStoreTel == null ? null : liveStoreTel.trim();
    }

    public String getLiveStoreBus() {
        return liveStoreBus;
    }

    public void setLiveStoreBus(String liveStoreBus) {
        this.liveStoreBus = liveStoreBus == null ? null : liveStoreBus.trim();
    }

    public Integer getDefaultAlbumId() {
        return defaultAlbumId;
    }

    public void setDefaultAlbumId(Integer defaultAlbumId) {
        this.defaultAlbumId = defaultAlbumId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }


    //    public String getStoreGrade(){
//
//        switch (this.gradeId){
//            case 0: return "自营店铺专属等级0";
//            case 1: return "自营店铺专属等级1";
//            case 2: return "自营店铺专属等级2";
//
//            default:return "未定义等级";
//        }
//
//    }


    public String getSellerNameEq() {
        return sellerNameEq;
    }

    public void setSellerNameEq(String sellerNameEq) {
        this.sellerNameEq = sellerNameEq;
    }

    public String getStoreNameEq() {
        return storeNameEq;
    }

    public void setStoreNameEq(String storeNameEq) {
        this.storeNameEq = storeNameEq;
    }

    public String getMemberNameEq() {
        return memberNameEq;
    }

    public void setMemberNameEq(String memberNameEq) {
        this.memberNameEq = memberNameEq;
    }

    public BigDecimal getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(BigDecimal commissionRate) {
        this.commissionRate = commissionRate;
    }

    public StoreClassVo[] getToreClassVos() {
        return toreClassVos;
    }

    public void setToreClassVos(StoreClassVo[] toreClassVos) {
        this.toreClassVos = toreClassVos;
    }

    public Integer getCountyId() {
        return countyId;
    }

    public void setCountyId(Integer countyId) {
        this.countyId = countyId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }
}